interface Config {
  appPath: string;
  cors: {
    methods: string[];
    origin: string;
  };
  database: {
    url: string;
  };
  repoPath: string;
  server: {
    ip: string;
    port: number;
  };
}

const config: Config = {
  // app 目录
  appPath: 'E:\\___project___',
  cors: {
    methods: ['GET', 'POST', 'PUT', 'DELETE'],
    origin: '*',
  },
  database: {
    url: 'mongodb://127.0.0.1:27017/im_server',
  },
  // repo 目录
  repoPath: 'E:\\___project___\\repo',
  server: {
    ip: '192.168.111.65',
    port: 3000,
  },
};

export default config;
